package com.wgchao.authmanager.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @ClassName: HandleInfo
 * @author: wgchao
 * @createTime: 2020/5/9 2:14 PM
 * @Description: TODO
 */
@Entity
@Table(name = "am_resource_handle_info", uniqueConstraints =
        {@UniqueConstraint(name = "handleIdentify", columnNames = {"identify"})})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HandleInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String identify;

    private String name;

    private String remark;

    @Version
    private Long version;
}
